/*
 * switch判断成绩
 */
package switchdemo;

import java.util.Scanner;

public class Demo1 {
	public static void main(String[] args) {
		int s; // 存放用户输入的成绩
		Scanner kb = new Scanner(System.in);
		System.out.println("请输入您的成绩");
		s = kb.nextInt();
		switch (s / 10) {
		case 10:
		case 9:
			System.out.println("优秀");
			break;
		case 8:
			System.out.println("良好");
			break;
		case 7:
		case 6:
			System.out.println("合格");
			break;

		default:
			System.out.println("不合格");

		}
	}
}
